import React, { Component } from 'react'
import { Link, Route } from 'react-router-dom';
import Pro from './Pro';
import User from './User';

export default class Admin extends Component {
    render() {
        return (
            <>
                <div>Admin</div>
                <hr/>
                <Link to="/Admin/Pro">产品</Link>
                <Link to="/Admin/User">用户</Link>
                <hr/>    
                <Route path="/Admin/Pro" component={Pro}></Route>
                <Route path="/Admin/User" component={User}></Route>
            </>
        )
    }
}
